package com.yun.zhong.fu.demo.threadpool;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ThreadFactory;

/**
 * @Author RenPu
 * @Date 2022/4/28 17:26
 * @Version 1.0
 * @Description:
 **/
public class ThreadPool {

    public static ScheduledExecutorService newSingleScheduledExecutorService(final String group,
                                                                             final ThreadFactory threadFactory) {
        ScheduledExecutorService executorService = Executors.newScheduledThreadPool(1, threadFactory);
        return executorService;
    }
}
